package com.bms.hystrix.interfaces.jxgl;

import com.bms.hystrix.pojo.ErJiPingLun;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author zhangyujin
 * @version 1.0
 * @description ErJiPingLunByCheck.java
 * @date 2021/3/22 15:42
 */
@FeignClient(value = "LIAOTIANSHICLIENT")
public interface ErJiPingLunByCheck {

    @RequestMapping(value = "/erJiPingLun/xinZeng", method = RequestMethod.POST,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE,consumes ="application/json")
    Map xinZeng(@RequestBody ErJiPingLun erJiPingLun);

    @RequestMapping(value = "/erJiPingLun/chaXunById",method = RequestMethod.POST,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    Map chaXunById(@RequestParam String id, @RequestParam Integer page);

    @RequestMapping(value = "/erJiPingLun/shanChuByIdAndShiPingId",method = RequestMethod.POST,
            produces=MediaType.APPLICATION_JSON_UTF8_VALUE)
    Map<String, Object> shanChuById(@RequestParam String yiJiPingLunId, @RequestParam String id);

    @RequestMapping(value = "/erJiPingLun/chaxXunByTiaoJian", method = RequestMethod.GET,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    Map<String, Object> chaxXunByTiaoJian(@RequestParam String name);

    @RequestMapping(value = "/yiJiPingLun/chaXunByYiPingLunId", method = RequestMethod.POST,
            produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    Map<String, Object> chaXunByYiPingLunId(@RequestParam String id);
}
